<style type="text/css">
	label{width:110px!important;}
</style><?php if($flight['airline']==1) $airline="Air Bagan";
	  else if($flight['airline']==2) $airline="Air Mandalay";
	  else if($flight['airline']==3) $airline="Air KBZ";
	  else if($flight['airline']==4) $airline="Golden Myanmar Airlines";
	  else if($flight['airline']==5) $airline="Yangon Airway";
	  else if($flight['airline']==6) $airline="Asian Swings";?>

<h1 style="color:red"><?php echo $airline." (".$flight['fromplace']." => ".$flight['destination'].")" ?></h1>
<div id="box">
  <form action="<?php echo base_url();?>admin/flightprice/<?php if(isset($_GET['id'])) echo "update?flightid=".$_GET['flightid']."&id=".$_GET['id'];else echo "insert?flightid=".$_GET['flightid'];?>" method="post" enctype="multipart/form-data">
    <fieldset id="person">
      <legend>&nbsp;&nbsp;
      <?php if(isset($_GET['id'])) echo "Edit "; else echo "Insert ";?>
      Flight's Price&nbsp;&nbsp;</legend>
      <label>ID :</label>
      <?php if(isset($_GET['id'])) echo $detail['id'];else echo "ID";?><br />
	  <label>Date From :</label>
	  <input type="text" name="datefrom" value="<?php if(count($detail)>0) echo $detail['datefrom'] ?>" class="datepicker" placeholder="0000-00-00" />
      <br />
      <label>Date To :</label>
	  <input type="text" name="dateto" value="<?php if(count($detail)>0) echo $detail['dateto'] ?>" class="datepicker" placeholder="0000-00-00" />
      <br />
      <label>Price for Adult :</label>
	  <input type="text" name="priceforadult" value="<?php if(isset($_GET['id'])) echo $detail['priceforadult'] ?>" placeholder="Ex: 1000" />
      <br />
      <label>Price for Children :</label>
	  <input type="text" name="priceforchild" value="<?php if(isset($_GET['id'])) echo $detail['priceforchild'] ?>" placeholder="Ex: 1000" />
      <br />
      <label>Status : </label>
      <select name="status" style="margin-left:0;">
        <option value="0">Choice Status</option>
        <option value="1" <?php if($detail['status']=='1') echo "selected";?>>Highlights</option>
        <option value="2" <?php if($detail['status']=='2') echo "selected";?>>Normal</option>
        <option value="3" <?php if($detail['status']=='3') echo "selected";?>>Hidden</option>
      </select>
      <br>
      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" name="ok" value="Submit">
      </div>
    </fieldset>
  </form>
</div>
